<h1>Alle declaraties</h1>

<table cellspacing="10" cellpadding="0" width="100%">
  <tr>
    <th>Datum</th>
    <th>Omschrijving:</th>
    <th>Bedrag</th>
    <th>Betaald door</th>
    <th>Wie betalen mee?</th>
  </tr>
  
<% for declaration in @declarations %>
  <tr>
    <td><%=h declaration.created_at %></td>
    <td><%=h declaration.description %></td>
    <td><%= declaration.amount %></td>
    <td><%=h declaration.owner.firstname %></td>
    <td><%=h all_users(declaration)%></td>
  </tr>
<% end %>
</table>

<p id="current_page">
    <%= will_paginate @declarations %>
</p>